import {BehaviorWithStore} from "mobx-miniprogram-bindings"
import {userStore} from "../../stores/userstore"
import {cartStore} from "../../stores/cartObj"

export const addressBehavior = BehaviorWithStore({
  storeBindings: [{
    store: userStore,
    fields: ["userInfo"],
    actions: ['setUserInfo']
  },{
    store: cartStore,
    fields: ["addressObj"],
    actions: ['changeAddressObj']
  }]
})